/* Copyright (C) 2005, 2006 by Daniel Gheorghian
 All rights reserved
 
 Use and distribute freely, except: don't remove my name from the source or documentation 
 (don't take credit for my work), mark your changes (don't get me blamed for your possible bugs),
 don't alter or remove this notice.
 
 No warrantee of any kind, express or implied, is included with this software; use at your
 own risk, responsibility for damages (if any) to anyone resulting from the use of this
 software rests entirely with the user.
 
 Send bug reports, bug fixes, enhancements, requests, flames, etc., and I'll try to keep 
 a version up to date.  I can be reached at: daniel.gheorghian@gmail.com
*/


package com.ds.components.interactors;

import java.util.EventObject;

public class InteractorEvent extends EventObject
{
	private Object cellValue = null;
	private int row;
	private int column;

	/**
	 * Constructs a prototypical Event.
	 *
	 * @param source The object on which the Event initially occurred.
	 * @throws IllegalArgumentException if source is null.
	 */
	public InteractorEvent( Object source )
	{
		super( source );
	}

	public InteractorEvent( Object source, Object cellValue )
	{
		super( source );
		this.cellValue = cellValue;
	}

	public InteractorEvent( Object source, Object cellValue, int row, int column )
	{
		super( source );
		this.cellValue = cellValue;
		this.row = row;
		this.column = column;
	}

	public Object getCellValue()
	{
		return cellValue;
	}

	public void setCellValue( Object cellValue )
	{
		this.cellValue = cellValue;
	}

	/**
	 * @return the column
	 */
	public int getColumn()
	{
		return column;
	}

	/**
	 * @param column the column to set
	 */
	public void setColumn( int column )
	{
		this.column = column;
	}

	/**
	 * @return the row
	 */
	public int getRow()
	{
		return row;
	}

	/**
	 * @param row the row to set
	 */
	public void setRow( int row )
	{
		this.row = row;
	}
}
